package ar.edu.unlu.sistemas.ws.business;

import java.util.List;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class ResultsWS {

	private List<QueryResultVO> results;


	public ResultsWS() {
		super();
	}

	@XmlElementWrapper
	@XmlElement(name="result")
	public List<QueryResultVO> getResults() {
		return results;
	}

	public void setResults(List<QueryResultVO> results) {
		this.results = results;
	}
	
	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("\n\tResultados");
		for (QueryResultVO qvo : results) 
			qvo.toString(sb);
		return sb.toString();
	}
}
